package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.CategoriesBo;
import com.yingsheng.bi.hks.dto.categories.CategoriesAddReq;
import com.yingsheng.bi.hks.dto.categories.CategoriesModReq;
import com.yingsheng.bi.hks.repository.dao.po.Categories;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CategoriesMgmtMappings {

    CategoriesMgmtMappings INSTANCE = Mappers.getMapper(CategoriesMgmtMappings.class);

    Categories addReq2po(CategoriesAddReq req);

    Categories addReq2po(CategoriesModReq req);

    List<CategoriesBo> categoriesList2boList(List<Categories> categoriesList);
}
